<menu>
{foreach $tree as $page}
	<li>
		<a href="/{$page.alias}" {if $page.current}class="current"{/if}>
			{$page.title}
		</a>
		{if $page.child}
		<ul>
			{foreach $page.child as $child}
			<li>
				<a href="/{$page.alias}/{$child.alias}" {if $child.current}class="current"{/if}>
					{$child.title}
				</a>
			</li>
			{/foreach}
		</ul>
		{/if}
	</li>
{/foreach}
</menu>